package com.dragon.mmochat.model.scheduleJob.pkGame.activities;

public class MmochatServerTeamInfo implements Comparable<MmochatServerTeamInfo> {
	private int serverInstId;
	private int prority = 0;
	private String serverName = "";
	private String members = "";

	public void clear() {
		serverName = "";
		members = "";
	}

	public int getServerInstId() {
		return serverInstId;
	}

	public void setServerInstId(int serverInstId) {
		this.serverInstId = serverInstId;
	}

	public int getPrority() {
		return prority;
	}

	public void setPrority(int prority) {
		this.prority = prority;
	}

	public String getServerName() {
		return serverName;
	}

	public void setServerName(String serverName) {
		this.serverName = serverName;
	}

	public String getMembers() {
		return members;
	}

	public void setMembers(String members) {
		this.members = members;
	}

	public void addMemberInfo(String info) {
		members += info;
	}

	@Override
	public int compareTo(MmochatServerTeamInfo arg0) {
		return arg0.getPrority() - prority;
	}

}
